# encoding: utf-8

import random
import uuid
import shutil
import glob
from tqdm import tqdm


# file_path = r"D:/迅雷下载/图片下载/**/*.jpg"
# file_path = r"/imgs/**/*.jpg"
file_path = r"G:\data\采图\**\main\**\*.jpg"


file_list = glob.glob(file_path, recursive=True)

# print(len(file_list))

for file in tqdm(file_list):

    # print(file)
    unique_id = str(uuid.uuid4()).replace("-", "")
    new_path = f"../data/origin/{unique_id}.jpg"
    shutil.move(file, new_path)
    # shutil.copy(file, new_path)
    # break
